package com.ruandi.test13;

import com.ruandi.test13.Employee;

public class Programmer extends Employee {
    //属性
    private String language="java";

    //构造参数
    public Programmer() {
    }
    public Programmer(String num, String name, int age, int salary, String language) {
        super(num, name, age, salary);
        this.language = language;
    }

    //get and set
    public String getLanguage() {
        return language;
    }
    public void setLanguage(String language) {
        this.language = language;
    }

    //方法重写
    @Override
    public void getInfo(){
        System.out.println("编号："+getNum()+"，姓名："+getName()+"，年龄："+getAge()+"，薪资："+getSalary()+"，编程语言："+language);
    }
}
